package com.arvato.minipro.service.wx;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.arvato.minipro.bean.bean_do.wx.PublicAccountFansDo;
import com.arvato.minipro.bean.bean_dto.common.Query;
import com.arvato.minipro.bean.bean_vo.wx.PublicAccountFansVo;
import com.arvato.minipro.mapper.wx.PublicAccountFansMapper;

@Service
@Transactional
public class PublicAccountFansService {

	@Autowired
	private PublicAccountFansMapper publicAccountFansMapper;
	
	/**
	 * 根据条件查询多个粉丝
	 * @param query
	 * @return
	 */
	public List<PublicAccountFansVo> listByQuery(Query query) {
		return publicAccountFansMapper.listByQuery(query);
	}
	/**
	 * 插入一个粉丝
	 * @param fansDo
	 * @return
	 */
	public int insert(PublicAccountFansDo fansDo) {
		return publicAccountFansMapper.insert(fansDo);		
	}
	
}
